package com.yt.system.dao;

import com.yt.system.domain.Activity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Mapper
@Repository
public interface ActivityMapper {
    int deleteByPrimaryKey(Integer actid);

    int insert(Activity record);

    int insertSelective(Activity record);

    Activity selectByPrimaryKey(Integer actid);

    int updateByPrimaryKeySelective(Activity record);

    int updateByPrimaryKey(Activity record);

    List<Activity> selectAll(Date systime);

    List<Activity> selectEndActives(Date systime);

    List<Activity> getActivesNoStart(Date systime);

    List<Activity> getActivesStarted(Date systime);

    List<Activity> searchActiveByName(String keywords);

    List<Activity> searchActiveByContent(String keywords);

    List<Activity> searchActiveByAdress(String keywords);

    List<Activity> selectByAcid(Integer acid);
}